let s = "loveleetcode"
var firstUniqChar = function(s) {
    const arr = Array.from(s)
    console.log(arr);
    
    for (const [i, ch] of arr.entries()) { 
        console.log(i,ch);
        
    }
    return -1;
};
console.log(firstUniqChar(s));
